import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextPane;
import javax.swing.JEditorPane;
import javax.swing.ImageIcon;

import java.awt.Color;

import javax.swing.JButton;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Dialog.ModalExclusionType;


public class VentanaPedorra {

	private JFrame frmVentanaPedorra;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					VentanaPedorra window = new VentanaPedorra();
					window.frmVentanaPedorra.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public VentanaPedorra() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmVentanaPedorra = new JFrame();
		frmVentanaPedorra.setResizable(false);
		frmVentanaPedorra.setTitle("Ventana pedorra...");
		frmVentanaPedorra.getContentPane().setBackground(Color.GRAY);
		frmVentanaPedorra.setBounds(100, 100, 457, 327);
		frmVentanaPedorra.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmVentanaPedorra.getContentPane().setLayout(null);
		
		String logo = "/imagenes/logo.png";
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setIcon(new ImageIcon(VentanaPedorra.class.getResource(logo)));
		lblNewLabel.setBounds(142, 60, 153, 102);
		frmVentanaPedorra.getContentPane().add(lblNewLabel);
		
		JButton btnIniciarVotacion = new JButton("<html>Iniciar votaci&oacute;n</html>");
		btnIniciarVotacion.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				JOptionPane.showMessageDialog(null, "Primero me vas a tener que PROGRAMAR BANANITA!!!", "Aguanta un cambio...", JOptionPane.INFORMATION_MESSAGE);
			}
		});
		btnIniciarVotacion.setBounds(156, 200, 128, 23);
		btnIniciarVotacion.setFocusable(false);
		frmVentanaPedorra.getContentPane().add(btnIniciarVotacion);
	}
}
